/**
 * 
 */
package weibo4j.examples;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import weibo4j.Users;
import weibo4j.examples.oauth2.Log;
import weibo4j.model.WeiboException;
import weibo4j.org.json.JSONArray;
import weibo4j.org.json.JSONException;

/**
 * @author Administrator
 *
 */
public class WeiboContants {
	public static String[] contents=new String[]{"转起","顶你","有意思","来喽","汗","O__O…","-_-","顶下","支持","开心","我来了","请关主","请关主我","互米分","厉害","学习了","收藏了"};
	public static List accounts=new ArrayList();
	static{
		List k=new ArrayList();
		k.add("总裁");
		k.add("董事");
		k.add("经理");
		k.add("理事");
		k.add("总监");
		k.add("主任");
		k.add("院长");
		k.add("首席");
		k.add("创始人");
		k.add("分析师");
		k.add("主编");
		k.add("作家");
		k.add("CEO");
		k.add("教授");
		k.add("CTO");
		k.add("COO");
		k.add("CFO");
		k.add("委员");
		k.add("专家");
		k.add("秘书");
		k.add("顾问");
		k.add("博士");
		k.add("导师");
		k.add("研究员");
		k.add("投资");
		k.add("天使");
		k.add("总编");
		k.add("主管");
		k.add("设计师");
		k.add("工程师");
		k.add("架构师");
		k.add("程序员");
		k.add("记者");
		
		k.add("公司");
		k.add("企业");
		k.add("官方");
		k.add("微博");
		k.add("有限");
		
		List l=new ArrayList();
		l.add("techweb");
		l.add("互联网分析沙龙");
		l.add("36氪");
		l.add("开源中国");
		l.add("Linuxeden开源社区");
		l.add("LUPA开源社区");
		l.add("总裁语录");
		l.add("爱范儿");
		l.add("IT程序猿");
		l.add("人民日报");
		l.add("投资界微博");
		l.add("csdn");
		l.add("南方都市报");
		l.add("华尔街日报中文网");
		l.add("IT168官方微博");
		l.add("tech2ipo");
		l.add("程序员杂志");
		l.add("html5中国");
		l.add("PingWest中文网");
		l.add("zdnet");
		l.add("创业家杂志");
		l.add("创业邦杂志");
		l.add("易观");
		l.add("Donews官方微博");
		l.add("中国企业家杂志");
		l.add("chinaventure投中集团");
		l.add("雷锋网");
		l.add("IT新视界");
		l.add("伯乐在线官方微博");
		l.add("21世纪经济报道");
		
		WeiboAccount account1=new WeiboAccount();
		account1.setName("CTO沙龙");
		account1.setAccess_token("2.00PHViQDSEWlWC970a14a58aSg8OCE");//
		account1.setUid("2995425917");
		List l1=new ArrayList();
		l1.add("时尚语录风云榜");
		l1.add("时尚语录经典");
		l1.add("中国经营报");
		l1.add("东方早报");
		l1.add("环球时报");
		l1.add("第一财经日报");
		l1.add("南方日报");
		l1.add("经济观察报");
		l1.add("头条新闻");
		l1.add("新闻晨报");
		l1.add("华尔街日报中文网");
		l1.addAll(l);
		account1.setFilter(l1);
		account1.setDesc_key(k);
		List nk1=new ArrayList();
		nk1.add("微问助手");
		account1.setDesc_no_key(nk1);
		account1.setDescription("商英会致力于构筑商界精英交流与创业者沟通的全方位平台");
		//account1.setWeixinpic("http://ww3.sinaimg.cn/bmiddle/b28a927dtw1e3aiqnsjs7j.jpg");
		account1.setWeixinpic("http://ww3.sinaimg.cn/bmiddle/99972180tw1e4h6s1vt9rj20by0byq3s.jpg");
		account1.setWeixinhao("syhclub");
		
		WeiboAccount account2=new WeiboAccount();
		account2.setName("CTO沙龙");
		account2.setAccess_token("2.00gNE5oCMhKv2B75d2da753f3XnSvC");//CTO沙龙
		account2.setUid("2576818560");
		List l2=new ArrayList();
		l2.addAll(l);
		
		account2.setFilter(l2);
		
		account2.setDesc_key(k);
		List nk2=new ArrayList();
		nk2.add("微问助手");
		account2.setDesc_no_key(nk2);
		account2.setDescription("CTO沙龙致力于构筑技术精英交流与创业者沟通的全方位平台");
		account2.setWeixinpic("http://ww3.sinaimg.cn/bmiddle/99972180tw1e4h6s1vt9rj20by0byq3s.jpg");
		account2.setWeixinhao("cto-salon");
		
		
		WeiboAccount account3=new WeiboAccount();
		account3.setName("CTO沙龙");
		account3.setAccess_token("2.00asCdZDznfW2D64dd1bf088hX3Y6D");//CTO沙龙
		account3.setUid("3274876120");
		List l3=new ArrayList();
		l3.addAll(l);
		
		account3.setFilter(l3);
		account3.setDesc_key(k);
		List nk3=new ArrayList();
		nk3.add("微问助手");
		account3.setDesc_no_key(nk3);
		account3.setDescription("TMT沙龙致力于构筑技术精英交流与创业者沟通的全方位平台");
		//account3.setWeixinpic("http://ww3.sinaimg.cn/bmiddle/c332a4d8tw1e3ijkhkhoyj.jpg");
		account3.setWeixinpic("http://ww3.sinaimg.cn/bmiddle/99972180tw1e4h6s1vt9rj20by0byq3s.jpg");
		account3.setWeixinhao("tmt-salon");
		
		
		WeiboAccount account4=new WeiboAccount();
		account4.setName("CTO沙龙");
		account4.setAccess_token("2.00CsXgcD6JkjaBa42951deddyA1AdD");//CTO沙龙
		account4.setUid("3320039242");
		List l4=new ArrayList();
		l4.addAll(l);
		
		account4.setFilter(l4);
	
		account3.setDesc_key(k);
		List nk4=new ArrayList();
		nk4.add("微问助手");
		account4.setDesc_no_key(nk4);
		account4.setDescription("TMT俱乐部致力于构筑技术精英交流与创业者沟通的全方位平台");
		//account4.setWeixinpic("http://ww3.sinaimg.cn/bmiddle/c332a4d8tw1e3ijkhkhoyj.jpg");
		account4.setWeixinpic("http://ww3.sinaimg.cn/bmiddle/99972180tw1e4h6s1vt9rj20by0byq3s.jpg");
		account4.setWeixinhao("tmt-salon");
		/*
		try {
			Users um = new Users();
			um.client.setToken(account1.getAccess_token());
			JSONArray user = null;
			try {
				user = um.getUserCount(account1.getUid());
				Log.logInfo(user.toString());
			} catch (WeiboException e) {
				e.printStackTrace();
			}
			account1.setFensi(Integer.parseInt(user.getJSONObject(0).getString("followers_count")));
			account1.setGuanzhu(Integer.parseInt(user.getJSONObject(0).getString("friends_count")));
			
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		try {
			Users um = new Users();
			um.client.setToken(account2.getAccess_token());
			JSONArray user = null;
			try {
				user = um.getUserCount(account2.getUid());
				Log.logInfo(user.toString());
			} catch (WeiboException e) {
				e.printStackTrace();
			}
			account2.setFensi(Integer.parseInt(user.getJSONObject(0).getString("followers_count")));
			account2.setGuanzhu(Integer.parseInt(user.getJSONObject(0).getString("friends_count")));
			
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}*/
		try {
			Users um = new Users();
			um.client.setToken(account3.getAccess_token());
			JSONArray user = null;
			try {
				user = um.getUserCount(account3.getUid());
				Log.logInfo(user.toString());
			} catch (WeiboException e) {
				e.printStackTrace();
			}
			account3.setFensi(Integer.parseInt(user.getJSONObject(0).getString("followers_count")));
			account3.setGuanzhu(Integer.parseInt(user.getJSONObject(0).getString("friends_count")));
			
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		try {
			Users um = new Users();
			um.client.setToken(account4.getAccess_token());
			JSONArray user = null;
			try {
				user = um.getUserCount(account4.getUid());
				Log.logInfo(user.toString());
			} catch (WeiboException e) {
				e.printStackTrace();
			}
			account4.setFensi(Integer.parseInt(user.getJSONObject(0).getString("followers_count")));
			account4.setGuanzhu(Integer.parseInt(user.getJSONObject(0).getString("friends_count")));
			
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		account1.setGuanzhulist(WeiboTest.getUsersOfGuanzhu(account1.getAccess_token(), account1.getUid(),account1.getGuanzhu(),account1.getFensi()));
		accounts.add(account1);
		account2.setGuanzhulist(WeiboTest.getUsersOfGuanzhu(account2.getAccess_token(), account2.getUid(),account2.getGuanzhu(),account2.getFensi()));
		accounts.add(account2);
		//account3.setGuanzhulist(WeiboTest.getUsersOfGuanzhu(account3.getAccess_token(), account3.getUid(),account3.getGuanzhu(),account3.getFensi()));
		//accounts.add(account3);
		//account4.setGuanzhulist(WeiboTest.getUsersOfGuanzhu(account4.getAccess_token(), account4.getUid(),account4.getGuanzhu(),account4.getFensi()));
		//accounts.add(account4);
	}
	//public static String access_token = "2.00tyoXJCeYpBrD5a9d75ec86XkWfUE";//周小洛
	//public static String uid ="1973313487";//周小洛
	public static String access_token = "2.00PHViQDSEWlWC970a14a58aSg8OCE";//创投会
	public static String uid ="2995425917";//创投会
	//public static String  access_token = "2.00gNE5oCMhKv2B75d2da753f3XnSvC";//CTO沙龙俱乐部
	//public static String uid ="2576818560";//CTO沙龙俱乐部
	public static String domain ="208885618";//个性化域名
	public static Map getAD(WeiboAccount account){
		Map m=new HashMap();
		m.put("ad", "1");
		m.put("pic", account.getWeixinpic());
		m.put("content", "#CTO沙龙# 本人开通私人微信号啦：SIXINWO,欢迎大家交流互动,注明：公司-职位-昵称 , 另6月15北京 CTO沙龙举行聚餐交流活动,报名地址  http://event.weibo.com/861536 ");
		//m.put("content", "#CTO沙龙#www.ctosalon.com网站上线啦！这是一个跨界交流的高端CTO、CEO、创始人和高层的圈子俱乐部，目前在上海举办每月一次的高端聚餐交流，聚集人脉、整合资源、交流分享、共创共赢，如果您想加入此圈子，请私信留言，我们会给你发送邀请码注册加入！");
		return m;
	}
	public static String ad ="#CTO沙龙#迎春聚餐活动,湘鄂情徐汇店,肇嘉浜路500号好望角大酒店裙楼,本周六18时,这次准备了2桌，人数比较多，还有几个名额,报名或赞助请联系,报名地址:http://www.ctosalon.com/apply/add?id=22 微信号:cto-salon,AA制，人均150，因目前报名的人比较多,对报名通过者我们会跟你确认";
}
